home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 34
/
Amiga Format CD34 (1998-11-20)(Future Publishing)(GB)[!][Christmas issue].iso
/
-websites-
/
f1_gp
/
ftp
/
rexx
/
f1gppalette.lha
/
F1GPPalette.pprx
< prev
Wrap
Text File
|
1997-01-23
|
1KB
|
64 lines
/* Personal Paint Amiga Rexx script - Copyright © 1996-1997 Oliver Roberts */
/* $VER: F1GPPalette.pprx 1.0 */
/** ENG
Description
*/
IF ARG(1, EXISTS) THEN
PARSE ARG PPPORT test.
ELSE
PPPORT = 'PPAINT'
IF ~SHOW('P', PPPORT) THEN DO
IF EXISTS('PPaint:PPaint') THEN DO
ADDRESS COMMAND 'Run >NIL: PPaint:PPaint'
DO 30 WHILE ~SHOW('P',PPPORT)
ADDRESS COMMAND 'Wait >NIL: 1 SEC'
END
END
ELSE DO
SAY "Personal Paint could not be loaded."
EXIT 10
END
END
IF ~SHOW('P', PPPORT) THEN DO
SAY 'Personal Paint Rexx port could not be opened'
EXIT 10
END
ADDRESS VALUE PPPORT
OPTIONS RESULTS
OPTIONS FAILAT 10000
Get 'LANG'
IF RESULT = 1 THEN DO /* Deutsch */
txt_err_oldclient = 'Für dieses Skript_ist eine neuere Version_von Personal Paint erforderlich'
END
ELSE IF RESULT = 2 THEN /* Italiano */
txt_err_oldclient = 'Questa procedura richiede_una versione più recente_di Personal Paint'
ELSE /* English */
txt_err_oldclient = 'This script requires a newer_version of Personal Paint'
Version 'REXX'
IF RESULT < 7 THEN DO
RequestNotify 'PROMPT "'txt_err_oldclient'"'
EXIT 10
END
LessColors 21
GetColors FROM 14 TO 20 RGB
oldcols = RESULT
SetColors 'FROM 24 COLORS "'oldcols'" RGB'
f1gpcols = "255 255 0 170 0 0 204 0 0 238 0 0 51 68 102 221 221 238 68 102 119 102 119 153 119 153 170 153 170 204"
f1gpblue = "0 85 204"
f1gpwhite = "255 255 255"
SetColors 'FROM 14 COLORS "'f1gpcols'" RGB'
SetColors 'FROM 31 COLORS "'f1gpwhite'" RGB'
RemapImage